﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class BehaviorContainer
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class BehaviorContainer
   ">
    <meta name="generator" content="docfx 2.52.0.0">
    
    <link rel="shortcut icon" href="../api/images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> 
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <script type="text/javascript" async="" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
    
    
    
  </head>  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../api/images/favicon.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="SpiceSharp.Behaviors.BehaviorContainer">
  
  
  <h1 id="SpiceSharp_Behaviors_BehaviorContainer" data-uid="SpiceSharp.Behaviors.BehaviorContainer" class="text-break">Class BehaviorContainer
  </h1>
  <div class="markdown level0 summary"><p>A dictionary of <a class="xref" href="SpiceSharp.Behaviors.Behavior.html">Behavior</a>. Only on instance of each type is allowed.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html">InterfaceTypeSet</a>&lt;<a class="xref" href="SpiceSharp.Behaviors.IBehavior.html">IBehavior</a>&gt;</div>
    <div class="level2"><span class="xref">BehaviorContainer</span></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="SpiceSharp.Behaviors.IBehaviorContainer.html">IBehaviorContainer</a></div>
    <div><a class="xref" href="SpiceSharp.General.ITypeSet-1.html">ITypeSet</a>&lt;<a class="xref" href="SpiceSharp.Behaviors.IBehavior.html">IBehavior</a>&gt;</div>
    <div><span class="xref">System.Collections.Generic.ICollection</span>&lt;<a class="xref" href="SpiceSharp.Behaviors.IBehavior.html">IBehavior</a>&gt;</div>
    <div><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="SpiceSharp.Behaviors.IBehavior.html">IBehavior</a>&gt;</div>
    <div><span class="xref">System.Collections.IEnumerable</span></div>
    <div><a class="xref" href="SpiceSharp.ParameterSets.IParameterSetCollection.html">IParameterSetCollection</a></div>
    <div><a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a></div>
    <div><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_Add__0_">InterfaceTypeSet&lt;IBehavior&gt;.Add(IBehavior)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_Clear">InterfaceTypeSet&lt;IBehavior&gt;.Clear()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_Contains__0_">InterfaceTypeSet&lt;IBehavior&gt;.Contains(IBehavior)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_ContainsType__1">InterfaceTypeSet&lt;IBehavior&gt;.ContainsType&lt;TResult&gt;()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_ContainsType_System_Type_">InterfaceTypeSet&lt;IBehavior&gt;.ContainsType(Type)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_CopyTo__0___System_Int32_">InterfaceTypeSet&lt;IBehavior&gt;.CopyTo(IBehavior[], Int32)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_GetValue__1">InterfaceTypeSet&lt;IBehavior&gt;.GetValue&lt;TResult&gt;()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_Remove__0_">InterfaceTypeSet&lt;IBehavior&gt;.Remove(IBehavior)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_TryGetValue__1___0__">InterfaceTypeSet&lt;IBehavior&gt;.TryGetValue&lt;TResult&gt;(TResult)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_CopyFrom_SpiceSharp_ICloneable_">InterfaceTypeSet&lt;IBehavior&gt;.CopyFrom(ICloneable)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_GetEnumerator">InterfaceTypeSet&lt;IBehavior&gt;.GetEnumerator()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_System_Collections_IEnumerable_GetEnumerator">InterfaceTypeSet&lt;IBehavior&gt;.IEnumerable.GetEnumerator()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_Count">InterfaceTypeSet&lt;IBehavior&gt;.Count</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.General.InterfaceTypeSet-1.html#SpiceSharp_General_InterfaceTypeSet_1_IsReadOnly">InterfaceTypeSet&lt;IBehavior&gt;.IsReadOnly</a>
    </div>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="SpiceSharp.Behaviors.html">SpiceSharp.Behaviors</a></h6>
  <h6><strong>Assembly</strong>: SpiceSharp.dll</h6>
  <h5 id="SpiceSharp_Behaviors_BehaviorContainer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BehaviorContainer : InterfaceTypeSet&lt;IBehavior&gt;, IBehaviorContainer, ITypeSet&lt;IBehavior&gt;, ICollection&lt;IBehavior&gt;, IEnumerable&lt;IBehavior&gt;, IEnumerable, IParameterSetCollection, IParameterSet, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  <a id="SpiceSharp_Behaviors_BehaviorContainer__ctor_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.#ctor*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer__ctor_SpiceSharp_Behaviors_BehaviorContainer_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.#ctor(SpiceSharp.Behaviors.BehaviorContainer)">BehaviorContainer(BehaviorContainer)</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="SpiceSharp.Behaviors.BehaviorContainer.html">BehaviorContainer</a> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected BehaviorContainer(BehaviorContainer original)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Behaviors.BehaviorContainer.html">BehaviorContainer</a></td>
        <td><span class="parametername">original</span></td>
        <td><p>The original.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer__ctor_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.#ctor*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer__ctor_System_String_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.#ctor(System.String)">BehaviorContainer(String)</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="SpiceSharp.Behaviors.BehaviorContainer.html">BehaviorContainer</a> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public BehaviorContainer(string source)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">source</span></td>
        <td><p>The entity name that will provide the behaviors.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">source</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_Name_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.Name*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_Name" data-uid="SpiceSharp.Behaviors.BehaviorContainer.Name">Name</h4>
  <div class="markdown level1 summary"><p>Gets the name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string Name { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>The name of the behavior container.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="SpiceSharp_Behaviors_BehaviorContainer_Name_remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>This is typically the name of the entity that creates the behaviors in this container.</p>
</div>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_ParameterSets_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.ParameterSets*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_ParameterSets" data-uid="SpiceSharp.Behaviors.BehaviorContainer.ParameterSets">ParameterSets</h4>
  <div class="markdown level1 summary"><p>Gets all the parameter sets of this instance.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerable&lt;IParameterSet&gt; ParameterSets { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a>&gt;</td>
        <td><p>The parameter sets.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_Build_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.Build*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_Build__1_SpiceSharp_Simulations_ISimulation___0_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.Build``1(SpiceSharp.Simulations.ISimulation,``0)">Build&lt;TContext&gt;(ISimulation, TContext)</h4>
  <div class="markdown level1 summary"><p>Starts building the behaviors for the behavior container.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IBehaviorContainerBuilder&lt;TContext&gt; Build&lt;TContext&gt;(ISimulation simulation, TContext context)
    where TContext : IBindingContext</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a></td>
        <td><span class="parametername">simulation</span></td>
        <td><p>The simulation.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TContext</span></td>
        <td><span class="parametername">context</span></td>
        <td><p>The binding context.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Behaviors.IBehaviorContainerBuilder-1.html">IBehaviorContainerBuilder</a>&lt;TContext&gt;</td>
        <td><p>The behavior container builder.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TContext</span></td>
        <td><p>The type of binding context.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_Clone_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.Clone*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_Clone" data-uid="SpiceSharp.Behaviors.BehaviorContainer.Clone">Clone()</h4>
  <div class="markdown level1 summary"><p>Clones the instance.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override ICloneable Clone()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></td>
        <td><p>The cloned instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="overrides">Overrides</h5>
  <div><span class="xref">SpiceSharp.General.InterfaceTypeSet&lt;SpiceSharp.Behaviors.IBehavior&gt;.Clone()</span></div>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_CreateParameterSetter_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.CreateParameterSetter*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_CreateParameterSetter__1_System_String_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.CreateParameterSetter``1(System.String)">CreateParameterSetter&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Creates an action that can set the parameter of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Action&lt;P&gt; CreateParameterSetter&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Action</span>&lt;P&gt;</td>
        <td><p>An action that can set the parameter value, or <code>null</code> if the parameter could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_CreatePropertyGetter_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.CreatePropertyGetter*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_CreatePropertyGetter__1_System_String_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.CreatePropertyGetter``1(System.String)">CreatePropertyGetter&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Creates a function that can get the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Func&lt;P&gt; CreatePropertyGetter&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;P&gt;</td>
        <td><p>A function that can get the property value, or <code>null</code> if the property could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_GetParameterSet_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.GetParameterSet*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_GetParameterSet__1" data-uid="SpiceSharp.Behaviors.BehaviorContainer.GetParameterSet``1">GetParameterSet&lt;P&gt;()</h4>
  <div class="markdown level1 summary"><p>Gets the parameter set of the specified type.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public P GetParameterSet&lt;P&gt;()
    where P : IParameterSet</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">P</span></td>
        <td><p>The parameter set.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter set type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.TypeNotFoundException.html">TypeNotFoundException</a></td>
        <td><p>Thrown if the parameter set could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_GetProperty_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.GetProperty*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_GetProperty__1_System_String_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.GetProperty``1(System.String)">GetProperty&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Gets the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public P GetProperty&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">P</span></td>
        <td><p>The value of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Diagnostics.ParameterNotFoundException.html">ParameterNotFoundException</a></td>
        <td><p>Thrown if a parameter by the specified name could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_SetParameter_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.SetParameter*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_SetParameter__1_System_String___0_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.SetParameter``1(System.String,``0)">SetParameter&lt;P&gt;(String, P)</h4>
  <div class="markdown level1 summary"><p>Sets a parameter in the parameter set of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SetParameter&lt;P&gt;(string name, P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value that the parameter should be set to.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Diagnostics.ParameterNotFoundException.html">ParameterNotFoundException</a></td>
        <td><p>Thrown if a parameter by the specified name could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_TryGetParameterSet_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.TryGetParameterSet*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_TryGetParameterSet__1___0__" data-uid="SpiceSharp.Behaviors.BehaviorContainer.TryGetParameterSet``1(``0@)">TryGetParameterSet&lt;P&gt;(out P)</h4>
  <div class="markdown level1 summary"><p>Tries to get the parameter set of the specified type.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool TryGetParameterSet&lt;P&gt;(out P value)
    where P : IParameterSet</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The parameter set.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the parameter set was found; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter set type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_TryGetProperty_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.TryGetProperty*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_TryGetProperty__1_System_String___0__" data-uid="SpiceSharp.Behaviors.BehaviorContainer.TryGetProperty``1(System.String,``0@)">TryGetProperty&lt;P&gt;(String, out P)</h4>
  <div class="markdown level1 summary"><p>Tries to get the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool TryGetProperty&lt;P&gt;(string name, out P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value of the property if the property was found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the property was found and returned; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Behaviors_BehaviorContainer_TrySetParameter_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.TrySetParameter*"></a>
  <h4 id="SpiceSharp_Behaviors_BehaviorContainer_TrySetParameter__1_System_String___0_" data-uid="SpiceSharp.Behaviors.BehaviorContainer.TrySetParameter``1(System.String,``0)">TrySetParameter&lt;P&gt;(String, P)</h4>
  <div class="markdown level1 summary"><p>Tries to set a parameter in the parameter set of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool TrySetParameter&lt;P&gt;(string name, P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value that the parameter should be set to.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if a parameter was found and set succesfully; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="SpiceSharp.Behaviors.IBehaviorContainer.html">IBehaviorContainer</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.General.ITypeSet-1.html">ITypeSet&lt;V&gt;</a>
  </div>
  <div>
      <span class="xref">System.Collections.Generic.ICollection&lt;T&gt;</span>
  </div>
  <div>
      <span class="xref">System.Collections.Generic.IEnumerable&lt;T&gt;</span>
  </div>
  <div>
      <span class="xref">System.Collections.IEnumerable</span>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.ParameterSets.IParameterSetCollection.html">IParameterSetCollection</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a>
  </div>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="SpiceSharp.Utility.html#SpiceSharp_Utility_ThrowIfNull__1___0_System_String_">Utility.ThrowIfNull&lt;T&gt;(T, String)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_Parameters_SpiceSharp_ParameterSets_IParameterSetCollection_">Documentation.Parameters(IParameterSetCollection)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_Parameters_SpiceSharp_ParameterSets_IParameterSet_">Documentation.Parameters(IParameterSet)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_ParameterValues__1_SpiceSharp_ParameterSets_IParameterSetCollection_System_Boolean_">Documentation.ParameterValues&lt;T&gt;(IParameterSetCollection, Boolean)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_ParameterValues__1_SpiceSharp_ParameterSets_IParameterSet_System_Boolean_">Documentation.ParameterValues&lt;T&gt;(IParameterSet, Boolean)</a>
  </div>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="SpiceSharp.Behaviors.IBehaviorContainer.html">IBehaviorContainer</a></div>
      <div><a class="xref" href="SpiceSharp.ParameterSets.IParameterSetCollection.html">IParameterSetCollection</a></div>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
